package com.example.community.repository;

import com.example.community.entity.article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface articleMapper {
    List<article> getAllArticle();
    article getOneArticleById(String id);
    //    增加文章
    int addArticle(article article);
    //    更新文章
    void updateArticle(article article);
    int deleteOneArticle(String id);

}
